package com.transaction.seataorder.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.transaction.seataorder.enums.SexEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author ausu
 * @version 1.0
 * @description: TODO
 * @date 2022/12/22 20:06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("order_tbl")
public class Order implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private int id;

    @TableField("product_id")
    private int productId;

    @TableField("total_amount")
    private int totalAmount;

    //  delete变成逻辑删除
    @TableLogic
    private int status;

    @Version
    @TableField("verson")
    private int verson;

    private int sex;
}
